import CryptoJS from "crypto-js"
import Vue from 'vue'
const baseIP = {
	static: "https://baike-app.baikewang.com/",
	poster: "https://bicpic.baikewang.com/"
};

// #ifdef H5
const rename = location.hostname;
// #endif
// #ifndef H5
const rename = 'localhost'; // 替换为线上指定域名
// #endif
const md5IP = CryptoJS.MD5(rename).toString() + "/";

// 各省份的静态资源文件
const staticResources = `${baseIP.static}config/${md5IP}`; // 省份id获取当前省份信息进行拼接
// 海报背景图地址
const posterBgUrl = `${baseIP.poster}baike_app/signup_poster_template/`

export default {
	staticResources,
	posterBgUrl
}